package com.tx.studentManager.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * @描述 院系
 * @since studentManager-admin 1.0
 * @version 1.0 2015-9-14 上午10:27:14
 * @author 此生唯晴
 */
@DynamicInsert(true)
@DynamicUpdate(true)
@Entity
@Table(name = "department", catalog = "studentManager")
public class Department extends BaseModel {
	private static final long serialVersionUID = -6213906282071874213L;
	@Id
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "depId", nullable = false, length = 32)
	private String depId;
	/**
	 * 院系名称
	 */
	@Column(name = "depName", nullable = false)
	private String depName;

	@Column(name = "createDate", nullable = false)
	private Date createDate;

	public String getDepId() {
		return depId;
	}

	public void setDepId(String depId) {
		this.depId = depId;
	}

	public String getDepName() {
		return depName;
	}

	public void setDepName(String depName) {
		this.depName = depName;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}
